{% extends "base.html" %}

{% block title %}
  {{query}}
{% endblock %}

{% block content %}
  <form action="/public/search_person">
    <input type="text" name="query" value="{{query}}" autofocus="autofocus" />
    <input type="submit" value="Search" />
  </form>
  <ul>
    {% for result in results %}
      <li>{{result|safe}}</li>
    {% endfor %}
  </ul>
  <form action="/user/add_person" method="{{submit_method}}">
    <input type="hidden" name="xsrf_token" value="{{xsrf_token}}" />
    Name: <input type="text" name="name" />
    <input type="submit" value="Add" />
  </form>

  {# Used to demo modules in closure. TODO(joetyson): remove me! #}
  <div id="message"></div>
{% endblock %}

{% block js_module_init %}
  ftw.ui.load();
{% endblock %}
